#ifndef RELAY_H_
#define RELAY_H_

#include "LED.h"
enum Relays {
	Relay_Begin,
	Relay_Alarm=Relay_Begin,
	Relay_Fault,
	Relay_1,
	Relay_2,
	Relay_3,
	Relay_4,
	Relay_Last
};
enum Relay_Setting {
	Relay_On,
	Relay_Setting_Begin=Relay_On,
	Relay_Off, // Comm connected to NC
	Relay_Setting_End
};
enum Alarm_Setting {
	Relay_noAlarm = Relay_Off,
	Relay_alarm = Relay_On
};
enum Fault_Setting {
	Relay_noFault = Relay_On,
	Relay_fault = Relay_Off
};
void Relay_init(void);
//void Relay_set(enum Relays relay, enum Relay_Setting setting);
//enum Relay_Setting Relay_get(enum Relays relay);
//enum Relay_Setting Relay_getRequest(enum Relays resourceIndex, enum LED_INDEX requestorIndex);
void Relay_AllOff(void);
int REL_resourceArray_requestRelay(enum Relays resourceIndex, enum LED_INDEX requestorIndex, enum Relay_Setting newSetting);
int REL_resourceArray_processRELAY(void);

#endif /* HARDWARE_H_ */
